const express = require('express');
const router = express.Router();
const {
    getNotices,
    deleteNotices,
    updateRead,
    rejectInvitation,
    acceptInvitation,
    getIsNew
} = require('../route-handlers/notices');

router.route('/').get(getNotices).delete(deleteNotices);
router.route('/read').post(updateRead)
router.route('/reject').post(rejectInvitation)
router.route('/accept').post(acceptInvitation)
router.route('/isnew').get(getIsNew)


module.exports = router;
